package com.lcf.proxy;

import com.lcf.service.UserService;

/**
 * Created by Administrator on 2019/4/24.
 */
public class UserServiceProxy {

    private UserService userService;

    public UserServiceProxy(UserService userService){
        this.userService=userService;
    }

    public void add(){
        System.out.println("静态代理--》添加数据前");
        userService.add();
        System.out.println("静态代理--》添加数据后");
    }
}
